package model

type Menu struct {
	Id     int32    `gorose:"id"`
	Host   string `gorose:"host"`
	Uri    string `gorose:"uri"`
	Method string `gorose:"method"`
	Status int    `gorose:"status"`
}

func (m *Menu) TableName() string {
	return "menu"
}


type Rule struct {
	MenuID    int32    `gorose:"menu_id"`
	RoleNames string 	`gorose:"role_names"`
	Status    int    	`gorose:"status"`
}

func (r *Rule) TableName() string {
	return "rule"
}
